package com.itheima.day10;
/*

    定义汽车类Car：
    属性有：品牌brand(String类型)、价格price(double类型)、续航mile(int类型)
    提供空参、带参构造
    提供getXxx()、setXxx()方法

*/

public class Car01 {

    private String brand;
    private double price;
    private int mile;

    public Car01() {

    }

    public Car01(String brand, double price, int mile) {
        this.brand = brand;
        this.price = price;
        this.mile = mile;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getMile() {
        return mile;
    }

    public void setMile(int mile) {
        this.mile = mile;
    }
}

